/// <reference path="typings/node/node.d.ts"/>
var http = require('http');

var cnt = 0;
var server = http.createServer(function(req,res){
    req.on('data',function(chunk){
		console.log(chunk.toString()+ cnt++);
		res.write(chunk);
			res.end('hello iojs!')
	})

}).listen(8080);
